
using AutoMapper;
using JYJ.AiYard.StationManagement.TbUser;
using JYJ.AiYard.StationManagement.TbUser.Dtos;

namespace JYJ.AiYard.StationManagement.TbUser.Mapper
{

	/// <summary>
    /// 配置TbUser的AutoMapper
    /// </summary>
	internal static class TbUserMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <TbUser,TbUserListDto>();
            configuration.CreateMap <TbUserListDto,TbUser>();

            configuration.CreateMap <TbUserEditDto,TbUser>();
            configuration.CreateMap <TbUser,TbUserEditDto>();

            configuration.CreateMap<TbUser, UserDepartDto>();
            configuration.CreateMap<UserDepartDto, TbUser>();

            

        }
	}
}
